Base class for a mesh data decoder. More...
Public Member Functions | |
| MeshDecoder () | |
| virtual | ~MeshDecoder () |
| virtual bool | canDecode (const std::string_view &sources)=0 |
| virtual bool | decode (const std::string_view &sources, Mesh *outMesh)=0 |
Base class for a mesh data decoder.
| nkGraphics::MeshDecoder::MeshDecoder | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
| sources | The path of the source file to decode, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
Implemented in nkGraphics::GltfMeshDecoder, and nkGraphics::ObjMeshDecoder.
|
pure virtual |
Decodes a file and fill the mesh provided with the data decoded.
| sources | The path of the source file to decode, relative to the working directory. See nkResource::ResourceManager for path naming conventions. |
| outMesh | The mesh where the data will be copied to. |
Implemented in nkGraphics::GltfMeshDecoder, and nkGraphics::ObjMeshDecoder.